home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010306-20010921
/
000144_nathan.rousseau…anetmedica.com_Thu May 17 10:24:18 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
55 lines
Article: 12439 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!news.maxwell.syr.edu!skynet.be!shere!louie!not-for-mail
From: "Nathan Rousseau" <nathan.rousseau@planetmedica.com>
Newsgroups: comp.protocols.kermit.misc
Subject: fail management
Date: Thu, 17 May 2001 09:58:04 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Lines: 36
Message-ID: <3b03864d$0$3124$456d72a3@news.skynet.be>
Organization: -= Skynet Usenet Service =-
NNTP-Posting-Host: 194.78.198.82
X-Trace: 990086733 reader0.news.skynet.be 3124 194.78.198.82
X-Complaints-To: abuse@skynet.be
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12439
When i call a macro with macro error set to on, the macro exit when error
occur but the return value of the macro seems always to be success ( even if
an error occur )
DEFINE SET_MODEM_CARACTERISTIQUE {
SET MACRO ERROR ON
...
SET PORT \%2 ; Device name
IF FAIL -
DO WRITE_IN_LOG {Unable to connect to : \%2 device} -
END 1 ERROR
...
END 0
}
I call the macro with :
DO SET_MODEM_CARACTERISTIQUE \%1 \%2 \%3
IF FAIL -
DO WRITE_IN_LOG {Unable to setup the modem to type: \%1, port \%2, speed
\%3} -
END 1 ERROR
and it never go in the fail case even if for example, an other session
kermit is already using the port
but the macro SET_MODEM_CARACTERISTIQUE has been terminated following the
error